const go/types.commaok
8 uses
go/types (current package)
api.go#L343: case constant_, variable, mapindex, value, commaok, commaerr:
api.go#L370: return tv.mode == commaok || tv.mode == mapindex
assignments.go#L26: case constant_, variable, mapindex, value, commaok, commaerr:
call.go#L265: if allowCommaOk && (x.mode == mapindex || x.mode == commaok || x.mode == commaerr) {
expr.go#L194: x.mode = commaok
expr.go#L1579: x.mode = commaok
operand.go#L28: commaok // like value, but operand may be used in a comma,ok expression
operand.go#L42: commaok: "comma, ok expression",